import 'package:flutter/material.dart';
import 'package:flutter_psj/models/login/logic.dart';
import 'package:flutter_psj/models/login/view.dart';
import 'package:flutter_psj/routers/app_pages.dart';
import 'package:get/get.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  Get.put(LoginLogic());

  runApp(GetMaterialApp(
    debugShowCheckedModeBanner: false,
    initialRoute: '/login',
    getPages: AppPages.pages,
    home: const App(),
  ));
}

class App extends StatelessWidget {
  const App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.light(),
      home: LoginPage()
    );
  }
}

